import React from "react"

interface ContainerProps {
	maxHeight?: string
	children: React.ReactNode
	style?: React.CSSProperties
}

const Container: React.FC<ContainerProps> = ({ maxHeight, children, style }) => {
	const containerStyle: React.CSSProperties = {
		maxHeight: maxHeight || "100%",
		overflowY: "auto",
		...style
	}

	return <div style={containerStyle}>{children}</div>
}

export default Container
